//
//  uploadVideoApi.m
//  testassembly
//
//  Created by liangang on 2018/4/16.
//  Copyright © 2018年 liangang. All rights reserved.
//

#import "uploadVideoApi.h"

@implementation uploadVideoApi
-(NSString *)requestUrl
{
    return @"/DriverApp/?m=member/certified/uploadVideo";
}
-(AFConstructingBlock)constructingBodyBlock
{
    return ^(id<AFMultipartFormData> formData) {
         [formData appendPartWithFileURL:self.filePath name:@"uploadfile" error:nil];
    };
}
- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodPost;
}
- (AFUploadProgressBlock)upLoadProgressBlock
{
    
    return ^(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) {
        
        float progress =(float)totalBytesWritten/ (float)totalBytesExpectedToWrite;
        NSLog(@"%.2f",progress  );
        
    };
}
@end
